﻿using FastExecutor.Base.Annotation;
using FastExecutor.Base.Design;
using FastExecutor.ORG.Annotation;
using FastExecutor.ORG.Filter;
using System.Web;
using System.Web.Mvc;

namespace FastExecutor
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //身份验证拦截
            filters.Add(new AuthFilter());
            //日志记录拦截
            filters.Add(new LogFilter());
            //SQL注入拦截
            filters.Add(new SQLInjectionFillter());
            //异常拦截
            filters.Add(new ErrorFilter());
        }
    }
}
